﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools;

namespace EntityPet
{
    /// <summary>
    /// 领养宠物
    /// </summary>
    public class Pet_adopt
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 领养人
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? AdoptPeople { get; set; }
        /// <summary>
        /// 领养人电话
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? AdoptNumber { get; set; }

        /// <summary>
        /// 宠物种类
        /// </summary>
        [Required]
        [StringLength(50)]
        public Pets Pets { get; set; }
        /// <summary>
        /// 宠物年龄
        /// </summary>
        [Required]
        [MaxLength(2)]
        public int PetAge { get; set; }
        /// <summary>
        /// 宠物性别
        /// </summary>
        [Required]
        public Gender Gender { get; set; }
        /// <summary>
        /// 宠物性格
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? PetCharacter { get; set; }
        /// <summary>
        /// 领养协议
        /// </summary>
        [Required]
        public bool AdoptAgreement { get; set; }
        /// <summary>
        /// 领养时间
        /// </summary>
        [Required]
        public DateTime AdoptTime { get; set; }
    }
}
